//
//  main.m
//  oc-09课堂代码练习
//
//  Created by 李世友 on 16/4/27.
//  Copyright © 2016年 李世友. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "NSString+getFirstCharacter.h"
#import "Mother.h"
#import "Nurse.h"
#import "NSMutableArray+converArray.h"

int main(int argc, const char * argv[]) {
    @autoreleasepool
    {
        NSString *str = [NSString stringWithFormat:@"tom"];
        NSString *str1 = [str getFirstCharacter];
        NSLog(@"str1:%@",str1);
        Mother *mother = [[Mother alloc]init];
        Nurse *nurse = [[Nurse alloc]init];
        mother.delegate = nurse;    //实例变量的作用是用来存值
        [mother payMoney];
        NSMutableArray *m = @[@"!",@"really",@"coding",@"Love",@"I"].mutableCopy;
        [m convertArray];
        NSLog(@"%@",m);
        

    
    }
    return 0;
}
